<?php

namespace Admin\Model;

use Think\Model;

class CategoryModel extends Model{

    protected $_validate = array(
        array('name','require','名称不能为空'),
        array('name','1,45','名称长度最多45字符',0,'length'),
        array('url','url','URL格式不正确'),
    );
}